package pers.vic.blog.module.api.service;

import org.springframework.stereotype.Service;
import pers.vic.boot.base.service.BaseService;
import pers.vic.blog.module.api.mapper.BlogCategoryMapper;
import pers.vic.blog.module.api.model.BlogCategory;

/**
 * @description:博客分类表 Service
 * @author Vic.xu
 * @date: 2020-05-08 09:38
 */
@Service
public class BlogCategoryService extends BaseService<BlogCategoryMapper, BlogCategory>{

    @Override
    protected boolean hasAttachment() {
        return false;
    }

    /**
     * 更新文章数量
     */
    public int updateArticleNum(Integer id){
        return mapper.updateArticleNum(id);
    }

}
